home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / wnos5src.zip / TRACE.H < prev    next >
Text File  |  1993-08-09  |  2KB  |  74 lines

  1. #ifndef    _TRACE_H
  2. #define    _TRACE_H
  3.  
  4. #ifndef    _MBUF_H
  5. #include "mbuf.h"
  6. #endif
  7.  
  8. #ifndef    _IFACE_H
  9. #include "iface.h"
  10. #endif
  11.  
  12. /* Definitions for packet dumping */
  13.  
  14. /* List of address testing and tracing functions for each interface.
  15.  * Entries are placed in this table by conditional compilation in main.c.
  16.  */
  17. struct trace {
  18.     int (*addrtest) __ARGS((struct iface *iface,struct mbuf *bp));
  19.     void (*tracef) __ARGS((FILE *,struct mbuf **,int));
  20. };
  21.  
  22. extern struct trace Tracef[];
  23.  
  24. /* In trace.c: */
  25. void dump __ARGS((struct iface *iface,int direction,unsigned type,struct mbuf *bp));
  26. void shuttrace __ARGS ((void));
  27. void trprintf __ARGS((FILE *fp,char *fmt,...));
  28.  
  29. /* In arcdump.c: */
  30. void arc_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  31. int arc_forus __ARGS((struct iface *iface,struct mbuf *bp));
  32.  
  33. /* In arpdump.c: */
  34. void arp_dump __ARGS((FILE *fp,struct mbuf **bpp));
  35.  
  36. /* In ax25dump.c: */
  37. void ax25_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  38. int ax_forus __ARGS((struct iface *iface,struct mbuf *bp));
  39.  
  40. /* In enetdump.c: */
  41. void ether_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  42. int ether_forus __ARGS((struct iface *iface,struct mbuf *bp));
  43.  
  44. /* In icmpdump.c: */
  45. void icmp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  46.  
  47. /* In ipdump.c: */
  48. void ip_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  49.  
  50. /* In kissdump.c: */
  51. void ki_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  52. int ki_forus __ARGS((struct iface *iface,struct mbuf *bp));
  53.  
  54. /* In nrdump.c: */
  55. void netrom_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  56.  
  57. /* In pppdump.c: */
  58. void ppp_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  59.  
  60. /* In ripdump.c: */
  61. void rip_dump __ARGS((FILE *fp,struct mbuf **bpp));
  62.  
  63. /* In slcompdump.c: */
  64. void sl_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  65. void vjcomp_dump __ARGS((FILE *fp,struct mbuf **bpp,int unused));
  66.  
  67. /* In tcpdump.c: */
  68. void tcp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  69.  
  70. /* In udpdump.c: */
  71. void udp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  72.  
  73. #endif    /* _TRACE_H */
  74.